package com.caocaog.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caocaog.market.entity.AppVersion;
import org.apache.ibatis.annotations.Param;

/**
 * App版本控制管理
 *
 * @author chechen
 * @date 2022-03-01
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {

    /**
     * 查询App版本控制信息分页
     *
     * @param page       分页信息
     * @param appVersion 查询条件
     * @return App版本控制信息分页
     */
    IPage<AppVersion> queryAppVersionPage(Page<AppVersion> page, @Param("appVersion") AppVersion appVersion);

    AppVersion getNewAppVersion(@Param("type") Integer type,
                                @Param("siteId") String siteId,
                                @Param("userId") String userId);

}
